package spring.cloud.zipkin.clienta;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
//@EnableEurekaClient
@EnableFeignClients
@RestController
public class ZipkinClientaRun {
	
	 public static void main(String[] args) {
	        SpringApplication.run(ZipkinClientaRun.class, args);
	 }
	 @Autowired
	 private ClientServerA clientServera;

	 @RequestMapping("/getMessageFormB")
	 public String home(@RequestParam String name) {
	     return clientServera.home(name);
	 }
	 
	 @RequestMapping("/getMessageFormA")
	 public String home2(@RequestParam String name) {
	     return "hello i am message form a ";
	 }
	
}
